package edu.kjxy.demo0329;

public class demo04 {

	public static int func(int n) {
		if(n == 1) {
			return 1;
		}
		else if(n == 2) {
			return 1;
		}
		else {
			return func(n - 1) + func(n - 2);
		}
	}
	public static void main(String[] args) {
		int ret = func(10);
		System.out.println(ret);
	}

}
